<?php

namespace Modules\ShopApi\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class PhoneRequest extends FormRequest
{
    
      
     public function authorize()
    {
        return true;
    }
	public function rules()
    {
        return [
			'phone' => 'required|is_phone',
        ]; 
    }  
	public function messages(){   
		return [
			'phone.required' 	=> '请输入手机号！',
			'phone.is_phone' 	=> '手机号格式错误！',
		];
	}
}









